package com.zjg.dao.iface;

import java.io.IOException;
import java.io.InputStream;
import java.util.List;
import java.util.Map;

import com.zjg.bean.Hobby;
import com.zjg.bean.User;
import com.Page;
public interface UserDao {
	public int checkUser(String name,String password);
	public List<User> getUserMessage();
	public User getUserHobby(User user);
	public int deleteUser(String ids);
	public User getAuthority(String name);
	public User getUser(String name);
	public int onlinestate(String name,String ip,String state);
	public User getUserById(int id);
	public void PageTest(Page<List<Map<String,Object>>> page);
	public InputStream getHeadIcon(int id);
	public List<User> getFriend(int id);
	public void addFriend(int id,int fid);
}
